package com.atguigu.inner.same;

public class TestCircle {
    public static void main(String[] args) {
        Circle[] circles = new Circle[3];
        circles[0] = new Circle(2.0);
        circles[1] = new Circle(1.5);
        circles[2] = new Circle(1.0);

        CircleComparator my = new CircleComparator();

        Object max = MyArrays.findMax(circles, my);
        System.out.println("半径最大的圆：" + max);
    }
}
